<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    x:Class="OpenLS.Chart.UI.ChartStyleResources"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:chart="http://schemas.Kherty.com/office/2007/chart"
  xmlns:chartui="clr-namespace:OpenLS.Chart.UI"
  xmlns:drawingui="clr-namespace:OpenLS.Drawing.UI;assembly=OpenLS.Drawing.UI"
  xmlns:Internals="clr-namespace:OpenLS.Chart.UI.Internals"
  >
  <ResourceDictionary.MergedDictionaries>
        <chartui:BarChartResources/>
  </ResourceDictionary.MergedDictionaries>
  <DataTemplate DataType="{x:Type chart:ChartStyle}" >
    <Border BorderThickness="5" chartui:ChartElement.Style="{Binding}">
      <Border.BorderBrush>
        <MultiBinding Converter="{x:Static Internals:ChartConverters.ColorBaseToBrushConverter}">
          <Binding Path="ChartAreaFillColor"></Binding>
          <Binding Path="(drawingui:DrawingElement.ColorScheme)" RelativeSource ="{RelativeSource Self}"/>
        </MultiBinding>
      </Border.BorderBrush>
      <Border.Background>
        <MultiBinding Converter="{x:Static Internals:ChartConverters.ColorBaseToBrushConverter}">
          <Binding Path="PlotAreaColor"></Binding>
          <Binding Path="(drawingui:DrawingElement.ColorScheme)" RelativeSource ="{RelativeSource Self}"/>
        </MultiBinding>
      </Border.Background>
            <Grid Width="68" Height="51">
                <Path Data="M0,10 L70,10 M0,30 L70,30 M0,50 L70,50" SnapsToDevicePixels="True" >
                    <Path.Stroke>
                        <MultiBinding Converter="{x:Static Internals:ChartConverters.ColorBaseToBrushConverter}">
                            <Binding Path="AxisColor"></Binding>
                            <Binding Path="(drawingui:DrawingElement.ColorScheme)" RelativeSource ="{RelativeSource Self}"/>
                        </MultiBinding>

                    </Path.Stroke>
                </Path>
                <Path Data="M5,30 L15,30 L15,50 L5,50 Z  M25,20 L35,20 L35,50 L25,50 Z M45,10 L55,10 L55,50 L45,50 Z" >
                    <Path.Fill>
                        <MultiBinding Converter="{x:Static Internals:ChartConverters.PatternConverter}">
                            <Binding />
                            <Binding Path="Index" />
                            <Binding RelativeSource="{RelativeSource Self}" Path="(drawingui:DrawingElement.ColorScheme)" />
                        </MultiBinding>
                    </Path.Fill>
                </Path>
                
            </Grid>
            <!-- <ContentPresenter ContentTemplate="{StaticResource smallBarChart}"
          Width="68" Height="50">
          <ContentPresenter.Content>
            <MultiBinding>
              <MultiBinding.Converter>
                <chartui:ChartSampleConverter/>
              </MultiBinding.Converter>
              <Binding></Binding>
              <Binding></Binding>
            </MultiBinding>
          </ContentPresenter.Content>
        </ContentPresenter> -->
    </Border>
  </DataTemplate>
    
</ResourceDictionary>